using System;
using System.Collections.Generic;
using System.Text;

namespace Rensoft.CRM.Client.AccountsAPI
{
    public partial class Payment
    {
        public string PaymentTypeString
        {
            get
            {
                switch (typeField)
                {
                    case PaymentType.Bacs:
                        return "BACS";

                    case PaymentType.BalanceTransfer:
                        return "Balance Transfer";

                    case PaymentType.Cash:
                        return "Cash";

                    case PaymentType.Cheque:
                        return "Cheque";

                    default:
                        throw new NotSupportedException(
                            "Payment type not supported.");
                }
            }
        }
    }
}
